#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<string>

using namespace std;

string StringsAdd(string num1, string num2)
{
	int end1 = num1.size() - 1;
	int end2 = num2.size() - 1;
	int sum = 0;
	string ret;
	int carry = 0;
	while (end1 >= 0 || end2 >= 0)
	{
		int val1 = end1 >= 0 ? num1[end1] - '0' : 0;
		int val2 = end2 >= 0 ? num2[end2] - '0' : 0;
		sum = val1 + val2 + carry;
		carry = sum / 10;
		sum = sum % 10;
		ret.insert(ret.begin(), sum + '0');
		--end1;
		--end2;
	}
	if (carry == 1)
	{
		ret.insert(ret.begin(), '1');
	}
	return ret;
}

int main()
{
	string num1;
	string num2;
	cin >> num1 >> num2;
	string num3 = StringsAdd(num1, num2);
	cout << num3 << endl;
	return 0;
}